// @APIVersion 1.0.0
// @Title yunshangxiaozhao API
// @Description a school recruit project
// @Contact zjk@163.com thekernelz@163.com
// @TermsOfServiceUrl http://yunshangxiaozhao.com
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
package routers

import (
	"github.com/astaxie/beego"
	"yunshangxiaozhao/controllers"
)

func init() {
	ns := beego.NewNamespace("/v1",
		beego.NSNamespace("/user",
			beego.NSInclude(
				&controllers.UserController{},
			),
		),
		beego.NSNamespace("/company",
			beego.NSInclude(
				&controllers.CompanyController{},
			),
		),
		beego.NSNamespace("/live",
			beego.NSInclude(
				&controllers.LiveController{},
			),
		),
		beego.NSNamespace("/email",
			beego.NSInclude(
				&controllers.EmailController{},
			),
		),
		beego.NSNamespace("/chat",
			beego.NSInclude(
				&controllers.ChatController{},
			),
		),
		beego.NSNamespace("/sms",
			beego.NSInclude(
				&controllers.SMSController{},
			),
		),
		beego.NSNamespace("/pay",
			beego.NSInclude(
				&controllers.PayController{},
			),
		),
	)
	beego.AddNamespace(ns)
}
